package com.tourism.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tourism.domain.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface RoleMapper extends BaseMapper<Role> {

    List<Role> getRolesByUserId(@Param("userId") Long userId);

    List<Long> getRoleAuth(@Param("roleId") Long roleId);
}




